import Request from "../request/http";
// import Vue from "vue"
// let thia = Vue.prototype

//银发首页下方列表
export const YFhomeList = (data) => Request({
    url: `/api/school/index`,
    method: "post",
    params:data
})

//全国校园展播报名课程列表
export const Branch = (data)=>Request({
    url: `/api/branchlesson/index`,
    method: "post",
    params:data
})

//银发首页详情页
export const List = (p) => Request({
    url: `/api/school/details?school_id=${p}&uid=1`,
    method: "GET"
})


//全国校园展播分校报名
export const Barschol = (data) => Request({
    url: `/api/branchschool/signup`,
    method: "post",
    params:data
})

//老年大学技能课程接口
export const Pub = (data) => Request({
    url: `/api/lesson/usereducourse`,
    method: "post",
    params:data
})

//课程报名标签列表
export const Taglist = (data) => Request({
    url: `/api/singup/taglist`,
    method: "post",
    params:data
})

//职业技能老年大学报名接口
export const Sign = (data) => Request({
    url: `/api/school/signup`,
    method: "POST",
    params:data
})

//老年大学校园展播定位接口
export const Getpovr = (data) => Request({
    url: `/api/school/getprovinceid`,
    method: "POST",
    params:data
})

// 老年大学上传证书接口
export const Certificate = (data) => Request({
    url: `/api/cert/download`,
    method: "POST",
    params:data
})

//职业技能机构详情
export const Organ = (data) => Request({
    url: `/api/organ/detail`,
    method: "POST",
    params:data
})



//职业技能培训报名课程列表
// export const Lesson = (data) => Request({
//     url: `/api/lesson/list`,
//     method: "POST",
//     params:data
// })

//职业技能学历接口
// export const pub = (data) => Request({
//     url: `/api/cert/usercert`,
//     method: "post",
//     params:data
// })

// 获取七牛上传token
// http://on.dayinyun.com/hongjiapi/qiniutoken/get
export const Qinun = (data) => Request({
    url: `/api/qiniutoken/get`,
    method: "post",
    params:data
})
